package com.lyb.service.impl;

import com.lyb.service.HelloService;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String getById(Integer id) {
        if (id == 1) {
            return "小明";
        }
        if (id == 2) {
            return "小2";
        }
        if (id == 3) {
            return "小3";
        }
        if (id == 4) {
            return "小4";
        }
        return null;
    }


}
